package cn.topevery.garden.entity.po;

import cn.topevery.garden.framework.base.BaseEntity;
import hw.topevery.framework.annotation.DbTable;
import hw.topevery.framework.annotation.DbTableField;
import hw.topevery.framework.enums.DbTypeEnum;
import lombok.Data;

/**
 * 任务信息
 *
 * @author code-generate
 * @date 2021-08-31
 */
@Data
@DbTable(tableName = "t_task_info")
public class TaskInfo extends BaseEntity {
        /**
     * 类型
     */
    @DbTableField(columnName = "c_type", dbType = DbTypeEnum.SMALLINT)
    public Short type ;

    /**
     * 名称
     */
    @DbTableField(columnName = "c_name", dbType = DbTypeEnum.VARCHAR)
    public String name ;

    /**
     * 公园id
     */
    @DbTableField(columnName = "c_extent_id", dbType = DbTypeEnum.INTEGER)
    public Integer extentId ;

    /**
     * 公园简称
     */
    @DbTableField(columnName = "c_extent_name", dbType = DbTypeEnum.VARCHAR)
    public String extentName ;

    /**
     * 面积
     */
    @DbTableField(columnName = "c_area", dbType = DbTypeEnum.DECIMAL)
    public double area  = 0.00 ;

    /**
     * 人员类型
     */
    @DbTableField(columnName = "c_person_type", dbType = DbTypeEnum.INTEGER)
    public Integer personType ;

    /**
     * 人员类型名称
     */
    @DbTableField(columnName = "c_person_name", dbType = DbTypeEnum.VARCHAR)
    public String personName ;

    /**
     * 备注
     */
    @DbTableField(columnName = "c_remark", dbType = DbTypeEnum.VARCHAR)
    public String remark ;

    /**
     * 对象类型id(1-机械作业任务,2-人员作业任务)
     */
    @DbTableField(columnName = "c_object_id", dbType = DbTypeEnum.INTEGER)
    public Integer objectId ;

}
